/// 徽章数据模型
class BadgePrint {
  final String id;
  final String name; // 徽章名称
  final String imageUrl; // 徽章图片路径
  final DateTime createdAt; // 创建时间

  BadgePrint({
    required this.id,
    required this.name,
    required this.imageUrl,
    required this.createdAt,
  });
}

/// 用户徽章数据模型
class UserBadgePrint {
  final String id;
  final String userId; // 用户ID
  final String badgeId; // 徽章ID
  final DateTime earnedAt; // 获得时间
  final bool isDisplayed; // 是否展示

  UserBadgePrint({
    required this.id,
    required this.userId,
    required this.badgeId,
    required this.earnedAt,
    required this.isDisplayed,
  });
}
